﻿using System;
using SimpleServiceBus.Bus.MessageManagement.MessageHandling;
using SimpleServiceBus.Bus.Pipeline;
using SimpleServiceBus.Messages.Management.Monitoring;

namespace SampleConfiglessEndpoint
{
    public class PingRequestMessageHandler : IMessageHandler<EndpointPingRequest>
    {
        #region IMessageHandler<EndpointPingRequest> Members

        public void Handle(EndpointPingRequest message, IMessageContext context)
        {
            MainForm.Current.Notify("Howdy. You pinged me with:" + message.Message + " at " + DateTime.Now.ToUniversalTime() +
                                    " UTC");
        }

        #endregion
    }
}